﻿//----------------------------------------------------

#region 命名空间

//    版权：
//    作者：
//建立时间：2012-09-11 00:00:33
//    描述：
//----------------------------------------------------
using System;
using System.Data;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using WinnerCMS.BLL.PageFactory;
using WinnerCMS.Common;
using WinnerCMS.Data;
using WinnerCMS.Model;
using System.Web.UI.WebControls;

#endregion

namespace WinnerCMS.BLL
{
    /// <summary>
    /// 业务逻辑类 WinnerCMS_DiggDiary 的摘要说明。
    /// </summary>
    public class DiggDiaryManage
    {
        private static readonly DiggDiaryDal MyDAL = new DiggDiaryDal();


        /// <summary>
        /// 绑定数据
        /// </summary>
        /// <param name="modelId"></param>
        /// <param name="pp"></param>
        /// <returns></returns>
        public IList<DiggDiary> BindList(byte modelId, PagingParam pp)
        {
            var list = MyDAL.BindList(modelId, pp);
            list.ForEach(x => x.Digg.Core.Link = StaticFilePath.ContentShowUrl(x.Digg.Core));
            return list;
        }
    }
}